package com.example.module_detail.model

import com.bawei.common.entity.CommendEntity
import com.example.module_detail.entity.AuthorEntity
import com.example.module_detail.api.DetailServerApi
import com.example.network.BaseResponse
import javax.inject.Inject

class DetailRepository @Inject constructor(private val apiServerApi: DetailServerApi) {

    suspend fun getAuthorInfoById(userId:String):BaseResponse<AuthorEntity>{
        return apiServerApi.getAuthorById(userId)
    }

    suspend fun getMovieCommendById(dataType:Int,itemId:String):BaseResponse<List<CommendEntity>>{
        return apiServerApi.getCommentByUserId(dataType,itemId)
    }





}